src/isOdd.js
zzmq.dev@gmail.com[dev1]/mathkit[add-isperfectsquare-n-function-tests] / src / isOdd.js
@ 38d966a7
Download
Ladder Summary
- file Contains the implementation of the isOdd function which determines if a given number is odd.
import { test } from "node:test";
import assert from "node:assert/strict";
export function isOdd(n) {
return n % 2 !== 0;
}